package cn.panda.edu.config.mybatis;

import org.mybatis.spring.mapper.MapperScannerConfigurer;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@AutoConfigureAfter(MybatisConfig.class)//保证在该类加载之后加载
public class MappingScanConfig {
	@Bean
	public MapperScannerConfigurer mapperScannerConfigurer() {
		MapperScannerConfigurer mapperScannerConfigurer = new MapperScannerConfigurer() ;
		mapperScannerConfigurer.setBasePackage("cn.panda.edu.dao");
		return mapperScannerConfigurer ;
	}
}
